import request from '@/utils/request'

// 查询stories列表
export function listRed_stories(query) {
  return request({
    url: '/system/red_stories/list',
    method: 'get',
    params: query
  })
}

// 查询stories详细
export function getRed_stories(id) {
  return request({
    url: '/system/red_stories/' + id,
    method: 'get'
  })
}

// 新增stories
export function addRed_stories(data) {
  return request({
    url: '/system/red_stories',
    method: 'post',
    data: data
  })
}

// 修改stories
export function updateRed_stories(data) {
  return request({
    url: '/system/red_stories',
    method: 'put',
    data: data
  })
}

// 删除stories
export function delRed_stories(id) {
  return request({
    url: '/system/red_stories/' + id,
    method: 'delete'
  })
}
